package com.yanyu.space.common.core.bean.web;

import com.yanyu.space.common.core.bean.enums.IRCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author yanyu
 */
@AllArgsConstructor
@Getter
public enum RCode implements IRCode {

    SUCCESS(0, "操作成功"),
    FAIL(10000, "操作失败"),
    BAD_PARAM(10001, "参数异常"),
    ACCESS_TOO_MANY(10002, "访问频率超限"),
    SERVICE_UNAVAILABLE(10003, "服务不可用"),
    TARGET_SERVICE_DENIED_CONNECTION(10004, "目标服务拒绝连接"),
    SERVICE_TIMEOUT(10005, "访问服务超时"),
    NOT_FOUND_RESOURCE(10006, "未找到该资源"),
    GATEWAY_FORWARD_EXCEPTION(10007, "网关转发异常"),
    UNAUTHORIZED(10008, "认证失败"),
    NOTPERMISSSION(10009, "沒有权限"),
    DATA_NOT_FOUND(10010, "数据不存在"),
    ;

    private int code;

    private String msg;
}
